 <div class="ydyy">
        <img src="/static/wap/img/ydyy.jpg" alt="">
        <div class="ydyy-1">
            <a href="#"><div class="ydyy-1-1">预约档期</div></a> 
            <div class="ydyy-1-2">网络预约进店有礼</div>
        </div>
    </div>
    <div class="hqbj">
        <div class="hqbj-1">
              <img style="vertical-align: middle" src="/static/wap/img/hqbj.png" alt=""> <span style="vertical-align: middle">免费获取报价/ SERVICE</span> 
        </div>
        <div class="hqbj-2"><input type="text" id ="name" name ="name" placeholder="姓名"></div>
        <div class="hqbj-2"><input type="text" id ="phone" name ="phone" placeholder="手机号/微信"></div>
        <a onclick ="subForm()"><div class="hqbj-3">提交</div></a> 
    </div>

<div class="foot">
        <div class="foot-1">全国统一客服热线 <span>400-888-8888</span> </div>
        <div class="foot-2">
            <p>CONTACT / 联系我们 </p>
            <span>0731-885964963<br>
            中国·长沙芙蓉区芙蓉中路二段98号明城国际中心3713 </span>
        </div>
        <div class="foot-2">
            <p>BRAND/ 宫主文化旗下品牌</p>
            <div>
                <img src="/static/wap/img/dbgg.png" alt="">
            </div>
        </div>
        <div class="foot-3"></div>
        <div class="foot-4">
                Copyright2016 -2020 粉黛墨摄影  备案号：湘ICP备14012844号
        </div>
    </div>
    <div class="bottom">
        <a href="#"><div class="bottom-1">
            <img src="/static/wap/img/baojia.png" alt=""><span>自助报价</span>
        </div></a>
        <a href="#"><div class="bottom-1">
            <img src="/static/wap/img/mfth.png" alt=""><span>免费通话</span>
        </div></a>
        <a href="#"><div class="bottom-1">
            <img src="/static/wap/img/zxzx.png" alt=""><span>在线咨询</span>
        </div></a>
    </div>

<script>
    
           function subForm() {
                    var name = $("#name").val();
                    var phone = $("#phone").val();
                    if (name == '') {
                        alert('请填写姓名');
                        return false;
                    }
                    if (phone == '') {
                        alert('请填联系方式');
                        return false;
                    }
                    $.post('/wap.php/index/add_bj', {name: name, phone: phone}, function (res) {
                        if (1 == res.code) {
                            alert(res.msg);
                        } else {
                           alert(res.msg);
                        }
                    }, 'json');
                    return false;
                }
    
    
</script>